package routers

import (
	"chaos-beego/controllers"
	"github.com/beego/beego/v2/server/web"
)

func init() {
	// /v1/object 前缀
	web.Router("/v1/object", &controllers.ObjectController{})
	web.Router("/v1/object/:id", &controllers.ObjectController{})

	// /v1/user 前缀
	web.Router("/v1/user", &controllers.UserController{})
	web.Router("/v1/user/:id", &controllers.UserController{})

}
